package com.homework3_1.duzhaoan;

import javax.json.bind.annotation.JsonbProperty;

public class Student {
    @JsonbProperty("学号")
    private String id;
    @JsonbProperty("姓名")
    private String name;
    @JsonbProperty("专业")
    private String field;
    @JsonbProperty("年龄")
    private  int age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student(String id, String name, String field, int age) {
        this.id = id;
        this.name = name;
        this.field = field;
        this.age = age;
    }

    public Student() {

    }
}
